package com.template.utils;

import org.springframework.util.DigestUtils;

public class SecurityUtils {

    private static final String MD5_DIGEST = "Af2ddDg4gISDgu2i3qe3unDg4d";

    /**
     * md5加密
     *
     * @param pwd
     * @return
     */
    public static String md5Encryption(String pwd) {
        return DigestUtils.md5DigestAsHex((MD5_DIGEST + pwd).getBytes());
    }

}
